package com.ui.console;

import java.util.Date;

import com.tidemark.Stock;
import com.tidemark.StockDataModel;

public class ConsoleDataModel implements StockDataModel{

	//java.util.Vector<String> v = new java.util.Vector();
	
	@Override
	public void addStock(Stock stock) {
		//v.add(code + " " + name + " " + comments);
		System.out.print(stock.getCode() + " " + stock.getName() + " " + stock.getComments() + ", ");
	}

	@Override	
	public void removeAllStocks(){
		//v.clear();
		System.out.println("=========================================================");
		System.out.println(new Date());
		System.out.println("=========================================================");

	}

	@Override
	public void addSeparator() {
		System.out.println();
		System.out.println();
		
	}
	
	
}
